<div class="halfwidthcontainer">

{include file="$template/pageheader.tpl" title=$LANG.addfunds desc=$LANG.addfundsintro}

{if $notallowed || $errormessage}<div class="alert-message error">
    <p class="bold">{$LANG.clientareaerrors}</p>
    <ul>
        <li>{if $notallowed}{$LANG.clientareaaddfundsnotallowed}{else}{$errormessage}{/if}</li>
    </ul>
</div>{/if}

<p>{$LANG.addfundsdescription}</p>

<br />

<table class="zebra-striped">
    <tbody>
        <tr>
            <td class="textright"><strong>{$LANG.addfundsminimum}</strong></td>
            <td>{$minimumamount}</td>
        </tr>
        <tr>
            <td class="textright"><strong>{$LANG.addfundsmaximum}</strong></td>
            <td>{$maximumamount}</td>
        </tr>
        <tr>
            <td class="textright"><strong>{$LANG.addfundsmaximumbalance}</strong></td>
            <td>{$maximumbalance}</td>
        </tr>
    </tbody>
</table>

<form method="post" action="{$smarty.server.PHP_SELF}?action=addfunds">

<div class="logincontainer">

    <fieldset>

	    <div class="clearfix">
		    <label for="amount">{$LANG.addfundsamount}:</label>
			<div class="input">
			    <input type="text" name="amount" id="amount" value="{$amount}" class="small" />
			</div>
		</div>

        <div class="clearfix">
		    <label for="paymentmethod">{$LANG.orderpaymentmethod}:</label>
			<div class="input">
			    <select name="paymentmethod" id="paymentmethod">
                {foreach from=$gateways item=gateway}
                    <option value="{$gateway.sysname}">{$gateway.name}</option>
                {/foreach}
                </select>
			</div>
		</div>

    </fieldset>

<p align="center"><input type="submit" value="{$LANG.addfunds}" class="btn primary" /></p>

<br />

<p align="center">{$LANG.addfundsnonrefundable}</p>

</div>

</form>

</div>